<?php echo $this->messages(); ?>

<?php $this->form->getElement('send')->setAttrib('class', 'control control-editAreaSubmit'); ?>

<?php echo $this->form; ?>

<?php if ($this->form->getElement('id')->getValue()) : ?>
	<?php $request = Zend_Controller_Front::getInstance()->getRequest(); ?>
	<?php $deleteUrl = $this->url(array(
		'controller' => $request->getControllerName(),
		'action' => 'delete',
		'id' => $this->form->getElement('id')->getValue()
	)); ?>

<a class = "delete" href = "<?php echo $deleteUrl; ?>">delete</a>

<?php endif; ?>